package service.impl;

import dao.TypeDao;
import service.OrderService;

public class OrderServiceImpl implements OrderService {
    private TypeDao tDao;

    public OrderServiceImpl() {
    }

    public OrderServiceImpl(TypeDao tDao) {
        this.tDao = tDao;
    }

    public TypeDao gettDao() {
        return tDao;
    }

    public void settDao(TypeDao tDao) {
        this.tDao = tDao;
    }

    @Override
    public String toString() {
        return "OrderServiceImpl{" +
                "tDao=" + tDao +
                '}';
    }

    @Override
    public void add() {
        tDao.add();
    }
}
